<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>喜乐康智能家居系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  	<script type="text/javascript">
  		var scheduleType = 2;
  		advancedDeviceId = 1;
  		$(function(){
  			$(".setting_advanced_device_right").load(evn_Path+"setting!settingAdvancedDeviceScheduleTime.do");
		});
	  	function settingAdvancedScheduleListDown(upDown){
	
	  		settingDown("setting_advanced_device_schedule_list_detail","setting_advanced_device_left2_down",387,upDown);
	  	}
	
	  	function settingAdvancedScheduleListUp(upDown){
	  		settingUp("setting_advanced_device_schedule_list_detail","setting_advanced_device_left2_up",upDown);
	  		
		}

	  	function deleteSchedule(scheduleId,upDown){
			if(upDown == 'down'){
				$("#schedule_list_delete"+scheduleId).css("background-image","url('"+evn_Path+"resource/schedule_list_delete_press.png')");
			}else if(upDown == 'up'){
				if(confirm("你确定要删除？")){
					$.post(evn_Path+"setting!deleteSchedule.do",{scheduleId:scheduleId},
							function(data){
								if(data=="success"){
									$(".setting_advanced_right").load(evn_Path+"setting!settingAdvancedMonitor.do");
								}
							})
				}
				$("#schedule_list_delete"+scheduleId).css("background-image","url('"+evn_Path+"resource/schedule_list_delete.png')");
			}
		}
  	</script>
  	
  </head>
  
  <body>
  	<div class="setting_advanced_count_left">
  		<div style="height: 397px;width: 304px;">
	  		<div class="setting_advanced_detail_left_bottom" style="height: 387px;">
	  			<div class="setting_advanced_device_schedule_list" style="height: 387px;">
	  				
	  					<div id="setting_advanced_device_room_list_detail1" class="setting_advanced_device_schedule_list_detail">
	  						<s:iterator id="ds" value="dsList" status="status">
	  								<div class="setting_advanced_device_schedule_list_detail_text" >
	  									<div class="schedule_list_delete" id="schedule_list_delete<s:property value="scheduleId"/>" onmousedown="deleteSchedule(<s:property value="scheduleId"/>,'down')" onmouseup="deleteSchedule(<s:property value="scheduleId"/>,'up')"></div>
	  									<div style="float:left;width: 200px;margin-left: 5px;"><s:property value="text"/></div>
	  									<div class="clear"></div>
									</div>
	  						</s:iterator>
	  					</div>
	  				
	  			</div>
	  			
	  		</div>
	  		<div class="setting_advanced_device_left2_up_down">
	  			<div onmouseup="settingAdvancedScheduleListUp('up')" onmousedown="settingAdvancedScheduleListUp('down')" class="setting_advanced_device_left2_up"></div>
	  			<div class="setting_advanced_device_left2_middle" style="height: 300px;"></div>
	  			<div onmouseup="settingAdvancedScheduleListDown('up')" onmousedown="settingAdvancedScheduleListDown('down')" class="setting_advanced_device_left2_down"></div>
	  		</div>
  		</div>
  		
  	</div>
	<div class="setting_advanced_device_right">
		
	</div>
  </body>
</html>
